package com.itheim.neibulei4;

public class Test {

    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.method();


    }
}
class Outer {
    int i = 10;

    public void sing() {
        System.out.println("只因你太美");
    }
    public void method(){
        int k=20;
        long start = System.currentTimeMillis();
        //局部内部类
        class Inner {
            int j = 10;

            public void dance() {
                System.out.println(k);
                System.out.println(i);
                System.out.println("蹦跶");
            }
        }
        Inner inner = new Inner();
        System.out.println(inner.j);
        inner.dance();
        long end = System.currentTimeMillis();
        System.out.println(end-start);
    }


}
